Fix clip position of windowed widgets
authorTimm Bäder <mail@baedert.org>
Fri, 28 Oct 2016 15:55:13 +0000 (17:55 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 28 Oct 2016 15:56:51 +0000 (17:56 +0200)
gtk/gtkpaned.c
gtk/gtkstack.c

index 733f48c64e9cfef2e36fee612136fa770aa55788..04e60b582fe3cb31f72b5654c12b4cc118cc3c83 100644 (file)
@@ -1247,6 +1247,8 @@ gtk_paned_size_allocate (GtkWidget     *widget,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);
 
+  clip.x += allocation->x;
+  clip.y += allocation->y;
   gtk_widget_set_clip (widget, &clip);
 }
 
index 903657926bd9e6378c80807325a448a63afae3f0..7b4af979149aa18e4acb65e6de7efcfb20af840f 100644 (file)
@@ -2202,6 +2202,8 @@ gtk_stack_size_allocate (GtkWidget     *widget,
                            allocation,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);
+  clip.x += allocation->x;
+  clip.y += allocation->y;
 
   gtk_widget_set_clip (widget, &clip);
 }